package com.project.homework4_8;

import com.project.homework4_8.service.IService;
import com.project.homework4_8.service.impl.ProxyService;
import com.project.homework4_8.service.impl.ServiceImpl;

public class Test {
    public static void main(String[] args) {
        ProxyService service =new ProxyService(new ServiceImpl());
        IService s = (IService) service.getProxy();
        s.run();
        s.sleep();
//        s.work();
    }
}
